home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
edit
/
wpgrab16.zip
/
WPGRAB.DOC
< prev
next >
Wrap
Text File
|
1988-02-28
|
17KB
|
580 lines
WPGRAB
P A T R I Q U I N ' S
Word Processing File Selection Aid
by
Norm J. Patriquin
User's Guide
Patriquin's BBS -- 714-369-9766
March 1, 1988
Copyright 1987 by Norm Patriquin
Table of Contents
WPGRAB -- Select file for Word Processing activity . . . . . . . 1
Command Parameters . . . . . . . . . . . . . . . . . . . . . . . . 3
Supplied DOS batch files . . . . . . . . . . . . . . . . . . . . . 5
Registering WPGRAB . . . . . . . . . . . . . . . . . . . . . . . . 6
WPGRAB 1.6 Registration . . . . . . . . . . . . . . . . . . . . . . 7
Reporting Problems with WPGRAB 1.6 . . . . . . . . . . . . . . . . 8
Maintenance Log . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2
WPGRAB -- Select file for Word Processing activity
For some time now I have wanted a facility in Word Perfect1 to allow me
to continue processing either the last document I was working with or
one of the more recent ones. I sometimes lose track of what I have
named files and have to go searching through directories looking to find
the ones I need.
This utility was developed to make my life easier. Maybe it can benefit
you too. WPGRAB simply scans the DOS directory to locate the most
recently updated files. It then presents them to you so you can review
and select a file from them to process. Once you have selected a file,
WPGRAB places a command with the filename in it in a DOS batch command
file to be executed. The following batch file is an example of its
operation.
Batch file named WPS.BAT. A typical use would be to just type in WPS
and let it do the work, but you might also give it a filename pattern
and qualify its search.
cd\wp
echo off
cls
wpgrab %1 /C:\perfect\wp
if errorlevel 2 goto error
wpgrab$$
:error
Assume we started WPGRAB with the WPS command. WPGRAB scanned the
directory and found the most recent files to processed. It then
displays a screen displaying the following information.
1 Word Perfect is a registered trademark of Word Perfect
Corporation.
1
*****************************************************************
WPGRAB 1.6 Copyright 1987 by: Norm Patriquin
-----------------------------------------------------------------
List of the 15 most recently updated files. Use /h for HELP
-----------------------------------------------------------------
A -- PCOPY.MAS 11SEP87 6:29a 931
B -- ALTF.MAC 11SEP87 6:32a 7
C -- L.BK! 13SEP87 1:49p 931
D -- L.LTR 13SEP87 2:01p 1052
E -- X.BK! 13SEP87 2:02p 931
F -- PS.BK! 13SEP87 2:21p 959
G -- PS.LTR 13SEP87 2:28p 987
H -- PDISK.BK! 13SEP87 2:32p 1320
I -- PDISK.LTR 13SEP87 2:38p 1332
J -- PCOPY.LTR 13SEP87 2:43p 943
K -- PPRINT.BK! 13SEP87 3:09p 820
L -- PPRINT.LTR 13SEP87 3:11p 846
M -- X 13SEP87 3:12p 846
N -- WPSELTMP.BAT 17SEP87 10:12p 20
O -- {WP}BACK.1 17SEP87 10:30p 11844
Press a letter to select a file from the list, <ESC> to exit, or
<ENTER> to select the most recent file ({WP}BACK.1)
Waiting for your selection...
*****************************************************************
WPGRAB now waits for you to select the file to be processed.
. Press <Enter> to automatically select the most recent file found in
the directory. This is the filename at the bottom of the list.
. Press a letter from A to O to select one of the files shown on the
display. These files are listed sorted by date and time in
ascending order.
. Use the up and down arrow keys to select the file to process. Then
press the <enter> key to begin processing.
. Press <ESCape> to terminate the process and not select any file.
. Press </> to start the command without a filename.
2
WPGRAB can actually be used for interfacing to any command that accepts
individual filenames as input. Consider using it for editors, listers,
word processors, and other utilities.
Command Parameters
WPGRAB has a few simple command parameters to modify its operation.
Here is how they operate:
COMMAND FORMAT:
WPGRAB [fspec] [/C:xxxx] [/L] [/D] [/H] [/X]
[/SS] [/SC] [/SV] [/SA]
[fspec] Enter the DOS file specification for the directory and
file names to be searched. If no directory name is
specified the current directory will be searched.
/C:xxx WPGRAB normally builds a WP command followed by the
pathname/filename selected. If you desire to use WPGRAB
for another utility, specify the -C command parameter
followed by the command to be used. This can also be
used to specify a pathname to locate a command in.
/C:\perfect\wp
The above example would start the WP command from
the \perfect\ directory.
/C:del
The above command would use the DOS delete command
to delete the file specified.
/L The /L parameter has no other values to specify. It
simply causes WPGRAB to select the most recent file
processed and not ask the user to select a file. It
would be used when you know you want the most recent file
processed.
3
/D WPGRAB normally builds a DOS batch file with the command
to be executed. A more efficient way to start the
command is to start it while WPGRAB is still active.
This is what the /D parameter causes WPGRAB to do.
The disadvantage here is that about 30K of memory will be
used by WPGRAB and will not be available to your word
processor. If you have plenty of memory, this is the
most efficient way to process.
/H Causes WPGRAB to display help information.
/SS The input pattern name will be used as a soundex search
argument to locate files to list. A soundex search is an
algorithm to find words that sound like the word entered.
For example, if you specify a pattern name of TOM*, a